/* 数据展示节点样式 */

/* 响应区域基础样式 */
.response-section {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-icon {
  font-size: 16px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.section-icon:hover {
  color: var(--color-primary-strong);
  transform: scale(1.1);
}

.section-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.section-title {
  color: var(--color-primary);
}

.section-content {
  padding: 16px;
}

/* 指标检索结果的内容区域减少上边距 */
.retrieval-section .section-content {
  padding: 8px 16px 16px 16px;
}

.timestamp {
  font-size: 11px;
  color: var(--color-muted);
  margin-left: auto;
  font-weight: normal;
}

/* 意图识别样式 */
.intent-section {
  background: var(--color-bg);
}

.intent-section .section-header {
  background: rgba(96, 125, 159, 0.08);
}

.intent-result {
  color: var(--color-subtext);
  font-weight: 500;
}

/* 结构化提取样式 */
.struct-section {
  background: var(--color-bg);
}

.struct-section .section-header {
  background: rgba(120, 144, 170, 0.08);
}

.struct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.struct-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.struct-label {
  font-size: 12px;
  color: var(--color-subtext);
  font-weight: 500;
}

.struct-value {
  color: var(--color-subtext);
  font-weight: 500;
  background: rgba(120, 144, 170, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
}

/* 数据检索样式 */
.retrieval-section {
  background: var(--color-bg);
}

.retrieval-section .section-header {
  background: rgba(84, 110, 136, 0.08);
}

/* 错误样式 */
.error-section {
  background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
}

.error-section .section-header {
  background: rgba(244, 67, 54, 0.1);
}

.error-message {
  color: #d32f2f;
  font-weight: 500;
}

/* 项目网格容器样式 */
.items-grid-container {
  margin-top: 8px;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 4px 0;
}

/* 项目卡片样式 - 高优先级 */
.items-grid .item-card {
  background: var(--color-bg) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 4px !important;
  padding: 12px !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease, background-color 0.2s ease !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-height: 50px !important;
  box-shadow: none !important;
}

.items-grid .item-card:hover {
  border-color: var(--color-primary) !important;
  background: var(--color-soft) !important;
  transform: none !important;
  box-shadow: none !important;
}

.items-grid .item-number {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  background: var(--color-primary) !important;
  color: white !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  z-index: 1 !important;
}

.items-grid .item-name {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  line-height: 1.4 !important;
  margin-right: 24px !important;
  flex: 1 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

.items-grid .item-similarity {
  background: var(--color-primary) !important;
  color: white !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  align-self: flex-start !important;
  margin-top: auto !important;
}